import React from 'react';

function One(props) {
	return (
		<div>
			<h3>One:{props.num}</h3>
			<button onClick={()=>{
				props.setNum(props.num+100)
			}}>更改num</button>
		</div>
	);
}

export default One;